package com.sc.javaee.mapper;

import com.sc.javaee.pojo.Categories;
import com.sc.javaee.pojo.Products;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoriesMapper {
    int deleteByPrimaryKey(Integer categoryId);

    int insert(Categories record);

    int insertSelective(Categories record);

    Categories selectByPrimaryKey(Integer categoryId);

    int updateByPrimaryKeySelective(Categories record);

    int updateByPrimaryKey(Categories record);

    List<Products> classification(@Param("p") Categories p);

    List<Products> fuzzyQuery(Products p);

    List<Products> dynamicQuery(Integer categoryId);
}